package cn.ronghuanet.base.query;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class BaseQuery {
    private String key;
    private Integer pageSize;
    private Integer currentPage;

    public int getStart(){
        return (this.currentPage-1)*pageSize;
    }
}
